﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="huaguwang.virtualWeb.user.loginNew" %>
<%@ Register Src="../uc/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../uc/user/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <title>会员登录</title>
    <link href="/css/css_global.css" rel="stylesheet" type="text/css" />
    <link href="/css/css_header_footer.css" rel="stylesheet" type="text/css" />
    <link href="/css/css_login.css" rel="stylesheet" type="text/css" />
    <script src="/JS/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        //divinex是下面方法里面dd对应的索引，dd元素，请注意相关标签的顺序
        //dd里面把所有需要使用的提示标签全部包含，如有增改，请注意调用顺序
        //msg可以修改标签里面的innerText的值，如有需要就加上，没有可以不写此参数
        function DIVShow(divIndex) {
            var dd = [
                $("#emptyUID"),
                $("#emptyPWD"),
                $("#wholeScript")
                ];
            $.each(dd, function(i, v) {
                v.hide();
            });
            dd[divIndex].fadeIn("slow");
        }
        $(function() {
            $("#btn_DL").click(function() {
                var name = $.trim($("#txtName").val());
                var pass = $.trim($("#txtPass").val());

                var one = $("#Checkbox1").attr("checked");
                name = name.replace("用户名/邮箱地址", "");
                if (name.length <= 0) {
                    DIVShow(0);
                    $("#txtName").focus();
                    return false;
                }
                if (pass.length <= 0) {
                    DIVShow(1);
                    $("#txtPass").focus();
                    return false;
                }
                $.getJSON("/user/userfunction.aspx?stype=3&", { p1: name, p2: pass, p3: one },
                function(json) {
                    if (json.success == "False") {
                        DIVShow(2);
                        return false;
                    } else {
                        location.replace(json.Msg);
                        return true;
                    }
                });
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="headerBG top">
        <uc1:header ID="header1" runat="server" />
    </div>
    <div class="container">
        <div id="logo">
            <img src="/images/logo.gif" />
        </div>
        <div id="red_septal_red" class="clear">
        </div>
        <div id="content_BG">
            <div id="content">
                <ul class="out_per60">
                    <li class="font_15">你好，欢迎来到股易!</li>
                    <li id="emptyUID" class="formErrorContent">请输入用户账号!</li>
                    <li id="emptyPWD" class="formErrorContent">请输入用户密码!</li>
                    <li id="wholeScript" class="formErrorContent" style="">
                        <h1 style="font-size:13px;">登录帮助</h1>
                        <ul class="script">
                            <li><b>您是否按下了键盘上的"Caps Lock"（大写功能）键？</b><font color="#6C6C6C">如果"A"灯亮着，请先关闭，然后重新输入。</font></li>
                            <li><b>您是否忘记或不小心输错了密码？</b><font color="#6C6C6C">您可以尝试再次输入或者通过"<a class="blue_under" href="">忘记密码</a>"找回密码。</font></li>
                            <li><b>您是否忘记或不小心输错了会员名？</b><font color="#6C6C6C">您可以尝试再次输入或者通过"<a class="blue_under" href="">忘记会员名</a>"找回。</font></li>
                            <li><b>如果仍然有问题？</b><font color="#6C6C6C">请到<a class="blue_under" href="">帮助中心</a>获取更多帮助。</font></li>
                        </ul>
                    </li>
                    <li>
                        <label>会员名&nbsp;&nbsp;</label>
                        <input id="txtName" class="input_txt" type="text" />
                    </li>
                    <li>
                        <label>密　码&nbsp;&nbsp;</label>
                        <input id="txtPass" class="input_txt" type="password" />
                    </li>
                    <li style="height: 35px;">&nbsp;<input id="Checkbox1" type="checkbox" /><font color="#aaaaaa">
                        两周内免登录 </font><a href=""><font color="#3366cc">忘记密码？</font></a></li>
                    <li>
                        <input id="btn_DL" type="button" value="" class="btn_login" />
                    </li>
                    <li class="reg_link"><a class="right" href="">
                        <img src="/images/login_register/now_register.gif" /></a> <span class="font_14 right">
                            还没有成为会员？</span> </li>
                </ul>
            </div>
            <div id="shadow">
                <img src="/images/login_register/login_AD_left.gif" /></div>
            <div id="ad">
                <img src="/images/login_register/login_AD.gif" /></div>
        </div>
        <div id="footer">
            <uc2:footer ID="footer1" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>
